MongoMapper.connection = Mongo::Connection.new('localhost', 27017)  
MongoMapper.database = 'smart_graze_development'
if defined?(PhusionPassenger)  
   PhusionPassenger.on_event(:starting_worker_process) do |forked|  
     MongoMapper.connection.connect if forked  
   end  
end  
